#define _CRT_SECURE_NO_WARNINGS 1
#include"SeqList.h"
 void TestSeqList1()
{
	SL sl;
	SLInit(&sl);
	SLPushBack(&sl, 1);
	SLPushBack(&sl, 2);
	SLPushBack(&sl, 3);
	SLPopBack(&sl);
	SLPrint(&sl);
}
 void TestSeqList2()
 {
	 SL sl;
	 SLInit(&sl);
	 SLPushBack(&sl, 5);
	 SLPushBack(&sl, 6);
	 SLPushBack(&sl, 7);
	 SLPushBack(&sl, 8);
	 SLInsert(&sl, 3, 3);
	 SLInsert(&sl, 4, 4);
	 SLErase(&sl, 3);
	 SLErase(&sl, 3);
	 SLPrint(&sl);
}
 void TestSeqList3()
 {
	 SL sl;
	 SLInit(&sl);
	 SLPushBack(&sl, 5);
	 SLPushBack(&sl, 6);
	 SLPushBack(&sl, 7);
	 SLPushFront(&sl, 4);
	 SLPushFront(&sl, 3);
	 SLPushFront(&sl, 2);
	 SLPopFront(&sl);
	 SLPrint(&sl);
	 printf("\n");
	 int tmp = SLFind(&sl, 3);
	 printf("%d", tmp);
 }
int main()
{
	//TestSeqList1();
	TestSeqList2();
	//TestSeqList3();
	return 0;
}